import {BasicFetchResult, BasicPageParams} from '@/api/model/baseModel';

export interface DeviceTypeListItem {
  id: string;
  // orderNo: string;
  // createTime: string;
  // remark: string;
  // status: number;
}

export type DeviceParams = BasicPageParams & {
  name?: string;
  type?: string;
  [key: string]: any;
};

export interface DeviceListItem {
  id: string;
  name: string;
  type: string;
  code: string;
  building: number;
  floor: string;
  dept: string;
}
export interface DataListItem {
  id: string;
  code: string;
  createtime: string;
  name: string;
  value: number;
  updatetime: string;
  updator: string;
}
export interface DataTypeListItem {
  id: string;
  [key: string]: any;
}
export interface ClassifyListItem {
  id: string;
  name: string;
  code: string;
  type: string;
  params: string;
  coefficient: number;
  building: number;
  floor: number;
  dept: string;
}

export interface RecordTypeListItem {
  id: string;
  [key: string]: any;
}

export type DeptListGetResultModel = BasicFetchResult<DeviceTypeListItem>;
export type DeviceListGetResultModel = BasicFetchResult<DeviceListItem>;
export type DataListGetResultModel = BasicFetchResult<DataListItem>;
export type DataTypeListGetResultModel = BasicFetchResult<DataTypeListItem>;
export type ClassifyListGetResultModel = BasicFetchResult<ClassifyListItem>;
export type RecordTypeListGetResultModel = BasicFetchResult<RecordTypeListItem>;



export type yaxisItem =  {
  name?: string;
  data?: number[];
  type?: string;
  stack?: string;
};

export type QoqListItem =  {
  xaxisList?: string[];
  yaxisList: yaxisItem[];
};
export type PieListItem =  {
  data: [];
};
export type QoqListGetResultModel = QoqListItem;

export type YoyListGetResultModel = QoqListItem;

export type RadioListGetResultModel = PieListItem;


